package com.tongji.housediy.events.houseEvent
{
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2011/5/12
	 */ 
	public class OpenHouseEvent extends Event
	{
		/*public static const OPEN_HOUSE:String = "openHouse";*/
		public static const UPDATE_HOUSE_MODEL:String = "updateHouseModel";
		public static const GAT_ALL_HOUSES:String = "getAllHouses";
		
		public static const GET_HOUSE_BY_CANTAVIL:String = "getHouseByCantavil";
		public static const UPDATE_HOUSE_PIC:String = "updateHousePic";
		
		public static const GET_SAMPLE_HOUSE:String = "getSampleHouse";
		public static const UPDATE_SAMPLE_HOUSE:String = "updateSampleHouse";
		
		public var userID:String;
		public var pageIndex:int;
		public var itemCount:int;
		
		public var houseArray:ArrayCollection;
		public var cantavilID:int;
		
		public function OpenHouseEvent(type:String, pageIndex:int, itemCount:int, cantavilID:int, houseArray:ArrayCollection = null)
		{
			super(type);
			this.pageIndex = pageIndex;
			this.itemCount = itemCount;
			this.userID = userID;
			this.houseArray = houseArray;
			this.cantavilID = cantavilID;
		}
		
		override public function clone():Event
		{
			return new OpenHouseEvent(type, pageIndex, itemCount, cantavilID, houseArray);
		}
	}
}